﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/MainTemplate.Master" AutoEventWireup="true" CodeBehind="LoggedInUserPage.aspx.cs" Inherits="AlexandriaPressWebsite.MasterPages.UserPages.LoggedInUserPage" %>
<asp:Content ID="Content1" ContentPlaceHolderID="mainDoc" runat="server">
<p>Welcome, 
    <asp:Label ID="usernameLabel" runat="server"></asp:Label></p>
    <p>
        YOU are the newest member of Alexandria Press. We&#39;re excited to have you as a 
        member and can&#39;t wait to see what you read.</p>
    <p>
        Thanks for joining and happy reading!</p>
    <p>
        - Alexandria Press Team</p>
    <h1>Latest Books</h1>
 <asp:GridView ID="searchGridView1" runat="server" AutoGenerateColumns="False"    
               RowStyle-BorderStyle="None"  
               PagerSettings-PageButtonCount="10" 
               GridLines="None"
               AllowPaging="True" 
               OnPageIndexChanging="searchGridView1_OnPageIndexChanging" 
               BorderStyle="None" CssClass="grid" PageSize="6">
               
            <PagerSettings PageButtonCount="10" />
<RowStyle BorderStyle="None"></RowStyle>
            <Columns>
            <asp:TemplateField ShowHeader="False">
                <ItemTemplate>
                    <asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("BookCover") %>' CssClass="smallImage2" />
                    <asp:Label ID="Label1" runat="server"></asp:Label><br />
                    TITLE: <asp:Label ID="BookTitle" runat="server" Text='<%# Eval("Title") %>'></asp:Label><br/>
                    AUTHOR: <asp:Label ID="BookAuthor" runat="server" Text='<%# Eval("Author") %>'></asp:Label><br />
                    GENRE: <asp:Label ID="BookGenre" runat="server" Text='<%# Eval("Genre") %>'></asp:Label><br />
                    QUANTITY IN STOCK: <asp:Label ID="BookQuantity" runat="server" Text='<%# Eval("QuantityInStock") %>'></asp:Label><br />
                    PRICE: <asp:Label ID="BookPrice" runat="server" Text='<%# Eval("Price") %>'></asp:Label><br />
                    <asp:Label ID="Label2" runat="server"></asp:Label><br />
                    <a href="TitleDetailsPage.aspx?id=<%# Eval("ID") %>">More>></a>
                </ItemTemplate>                   
            </asp:TemplateField>            
            </Columns>
        </asp:GridView>   
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="formDoc" runat="server">
</asp:Content>
